import { requestClient } from '#/api/request'

/**
 *  获取列表
 */
export async function supplyUserList(params: object = {}) {
  return requestClient.get('/admin/SupplyUser/index', params)
}

/**
 *  清空次数
 */
export async function clearFailure(params: object = {}) {
  return requestClient.post('/admin/SupplyUser/clearFailure', params, { responseReturn: 'raw' })
}

/**
 *  新增
 */
export async function supplyUserAdd(params: object = {}) {
  return requestClient.post('/admin/SupplyUser/add', params, { responseReturn: 'raw' })
}
/**
 *  获取详细
 */
export async function supplyUserInfo(params: object = {}) {
  return requestClient.get('/admin/SupplyUser/edit', params)
}

/**
 *  更新
 */
export async function supplyUserEdit(params: object = {}) {
  return requestClient.post('/admin/SupplyUser/edit', params,{ responseReturn: 'raw' })
}

/**
 *  新增
 */
export async function supplyDetails(params: object = {}) {
  return requestClient.post('/admin/Supply/details', params )
}

